package com.loukou.lkt.web.cron;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.loukou.lkt.cache.CacheService;

@Service("cacheTask")
public class CacheTask {
	private Logger logger = LoggerFactory.getLogger(CacheTask.class);
	
	@Autowired
	private CacheService cacheService;
	
	@PostConstruct
	public void load(){
		loadCompanyCache();
	}
	
	public void loadCompanyCache(){
		cacheService.loadCompanyCache();
	}
}
